package com.wr.common.redis.constants;

/**
 * 缓存常量信息
 *
 * @author mrz
 */
public class CacheConstants {
    /**
     * 密码最大错误次数
     */
    public final static int PASSWORD_MAX_RETRY_COUNT = 5;

    /**
     * 密码锁定时间，默认10（分钟）
     */
    public final static long PASSWORD_LOCK_TIME = 10;

    /**
     * 权限缓存前缀
     */
    public final static String LOGIN_USER_KEY = "login_users:";

    /**
     * 验证码 redis key
     */
    public static final String CAPTCHA_CODE_KEY = "code_captcha_codes:";

    /**
     * 登录 rsa秘钥
     */
    public static final String RSA_LOGIN_KEY = "rsa_login_key:";

    /**
     * 手机号验证码 redis key
     */
    public static final String PHONE_CODE_KEY = "phone_captcha_codes:";

    /**
     * 邮箱验证码 redis key
     */
    public static final String MAILBOX_CODE_KEY = "mailbox_captcha_codes:";

    /**
     * 微信小程序登录 cache key
     */
    public static final String WX_LET_LOGIN = "session_key:";

    /**
     * 参数管理 cache key
     */
    public static final String SYS_CONFIG_KEY = "sys_config:";

    /**
     * 字典管理 cache key
     */
    public static final String SYS_DICT_KEY = "sys_dict:";

    /**
     * 登录账户密码错误次数 redis key
     */
    public static final String PWD_ERR_CNT_KEY = "pwd_err_cnt:";

    /**
     * 登录IP黑名单 cache key
     */
    public static final String SYS_LOGIN_BLACKIPLIST = SYS_CONFIG_KEY + "sys.login.blackIPList";
}
